package com.lbfamous.numbers;

public class NuNumber {
    
    public static void main(String[] argv) {
        
        String aNumber = argv[0];
        double result;
        System.out.println(argv[0]);

        try {
            result = Double.parseDouble(aNumber);
            System.out.println("Number is " + result);
        }
        catch (NumberFormatException exec) {
            System.out.println("Invalid number " + aNumber);
            return;
        }
    }    
}